# 定义字典
dict_1 = {'name': 'zhangsan', 'age': 18, 'sex': 'male'}
print(dict_1, "类型是", type(dict_1))

# 查询name
print(dict_1['name'])  # 如果输出的key不存在会报错
